package com.neuedu.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfiguration {
    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("api接口文档")
                        .version("v1.0")
                        .contact(new Contact().name("屈博").email("qubome@aliyun.com"))
                        .description("xxxxx管理项目接口文档"));
    }
    @Bean
    public GroupedOpenApi bookAPI() {
        return GroupedOpenApi.builder()
                .group("xxx信息")
                .pathsToMatch("/**")
                .build();
    }
}
